﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Items;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Authorization.Users
{
    public class UserWalletDetail : FullAuditedEntity<long>
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }
        /// <summary>
        /// 钱包金额改变数目
        /// </summary>
        public decimal  WalletExchangeAmount { get; set; }
        /// <summary>
        /// 钱包金额改变原因
        /// </summary>
        public string WalletExchangeReason{ get; set; }
        /// <summary>
        /// 钱包金额改变时间
        /// </summary>
        public DateTime? WalletExchangeTime { get; set; }
        /// <summary>
        /// 钱包收支类型判断
        /// </summary>
        public UserWalletType WalletType { get; set; }
    }
}
